# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=checkiban
pkgver=0.2
pkgrel=3
groups=('blackarch' 'blackarch-misc')
pkgdesc='Checks the validity of an International Bank Account Number (IBAN).'
arch=('x86_64' 'aarch64')
url='http://kernel.embedromix.ro/us/'
license=('LGPL')
source=("http://kernel.embedromix.ro/us/IBAN/checkIBAN-$pkgver.tar.gz")
sha512sums=('dd336b44da3d6b641a66a0b42844122ea0a9fe8d7e33803f628584cdf91445413572a7962406ac5bc418b45d63ff1a8e0a77ef90f829e665c4c8f76ecd856119')

build() {
  cd "checkIBAN-$pkgver"

  make clean && make
}

package() {
  cd "checkIBAN-$pkgver"

  install -Dm 755 checkIBAN "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 TODO "$pkgdir/usr/share/doc/$pkgname/TODO"
}

